package com.jintoufs.domain.tour;

import java.math.BigDecimal;
import java.util.Date;

public class TourRoutePrice {
    private String id;

    private String tourRouteId;

    private String travelAgencyId;

    private Date date;

    private BigDecimal price;

    private Integer reserve;

    private String status;

    private BigDecimal marketPrice;

    private BigDecimal distributionPrice;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getTourRouteId() {
        return tourRouteId;
    }

    public void setTourRouteId(String tourRouteId) {
        this.tourRouteId = tourRouteId == null ? null : tourRouteId.trim();
    }

    public String getTravelAgencyId() {
        return travelAgencyId;
    }

    public void setTravelAgencyId(String travelAgencyId) {
        this.travelAgencyId = travelAgencyId == null ? null : travelAgencyId.trim();
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getReserve() {
        return reserve;
    }

    public void setReserve(Integer reserve) {
        this.reserve = reserve;
    }

    public BigDecimal getDistributionPrice() {
        return distributionPrice;
    }

    public void setDistributionPrice(BigDecimal distributionPrice) {
        this.distributionPrice = distributionPrice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        switch (status){
            case "关":this.status="0";break;
            case "开":this.status="1";break;
            default:this.status = status;break;
        }
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }
}